package com.xiaoyun.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class User {
    private Long id;

    private BaseInfo baseInfo;

    private OtherInfo otherInfo;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BaseInfo {
        private String name;
        private Integer age;
        private String sex;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class OtherInfo {
        private String phone;
        private String address;
    }

}
